package NGUYENDUCVIETPRACTICELV2;

public class TAMGIAC_Model {
	public double Chuvi(TAMGIAC obj){
		return obj.getA()+obj.getB()+obj.getC();
	}
	public double Dientich(TAMGIAC obj){
		return Math.sqrt(obj.getP()*(obj.getP()-obj.getA())
				*(obj.getP()-obj.getB())*(obj.getP()-obj.getC()));
	}
}
